﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;

namespace MyWeb.Business
{
    public class MenuService
    {
        public static MenuController db = new MenuController();

        #region[Menu_Insert]
        public void Menu_Insert(MenuInfo data)
        {
            db.Menu_Insert(data);
        }
        #endregion

        #region[Menu_Update]
        public void Menu_Update(MenuInfo data)
        {
            db.Menu_Update(data);
        }
        #endregion

        #region[Menu_Delete]
        public void Menu_Delete(string Id)
        {
            db.Menu_Delete(Id);
        }
        #endregion

        #region[Menu_GetByAll]
        public DataTable Menu_GetByAll()
        {
            return db.Menu_GetByAll();
        }
        #endregion

        #region[Menu_GetById]
        public DataTable Menu_GetById(string Id)
        {
            return db.Menu_GetById(Id);
        }
        #endregion

        #region[Menu_GetByTop]
        public DataTable Menu_GetByTop(string Top, string Where, string Order)
        {
            return db.Menu_GetByTop(Top, Where, Order);
        }
        #endregion
    }
}
